﻿using System;
using System.Collections.Generic;
using System.Text;

namespace GGSharp.Radio
{
    public class RepeatLoginResponse : RDSResponseBase
    {
        private string _loginServer;

        public RepeatLoginResponse(RequestInfo request)
        {
            this.Request = request;
            this.Type = ResponseType.RepeatLogin;
        }

        public string LoginServer
        {
            get { return _loginServer; }
            set
            {
                _loginServer = value;
                OnPropertyChanged("LoginServer");
            }
        }

        public override void Read(string response)
        {
            //2;frog5a.gaduradio.pl:443;GaduRadioNonRDSMessage;
            string[] values = response.Split(';');
            LoginServer = values[1];
        }
    }
}
